<link rel="stylesheet" href="__TEMPLATE__/css/style.css" />
<css file="__STATIC__/hdjs/hdjs.css" />
<js file="__STATIC__/js/jq17.js" />
<js file="__STATIC__/hdjs/hdjs.js" />
<script type="text/javascript" src="__TEMPLATE__/js/js.js"></script>
<script type="text/javascript">
	var checkUser = "{|U:'User/ajaxCheckUser'}";
	var checkNick = "{|U:'User/ajaxCheckNickName'}";
	var checkCode = "{|U:'User/ajaxCheckCode'}";
	var checkLogin = "__MODULE__/user/ajaxLoginReturn";
	var ajaxPingLun = "__MODULE__/user/ajaxLoginReturn";
$(function(){
	$('#loginclose').click(function(){
		$(this).parents('.login_hide_box').hide();
	});
	$('#regclose').click(function(){
		$(this).parents('.reg_hide_box').hide();
	});
})
	
</script>
<script src="__STATIC__/js/ajaxlogin.js"></script>
<js file="__TEMPLATE__/js/validate.js" />

</head>
<body>
	<!-- 顶部100%灰色区域 -->
	<div id="top_dark_box">
		<!-- 中间1200px宽度区域 -->
		<div id="top_dark">
			<a href="__ROOT__"><img src="__TEMPLATE__/images/others/logo.jpg" id="logo" /></a>
			<!-- 导航菜单 -->
			<ul id="menu">
				<navlist>
				<li>
					<a href="{$navs.url}">{$navs.cname}</a>
				</li>
				</navlist>
			</ul>
			<!-- 导航菜单结束 -->
			<!-- 用户登录 -->
			
			<div id="loginInfo" class='loginInfo'>
				<div id="islogin" style="display:none;"><span></span><a href="__MODULE__/user/loginout">退出</a></div>
			 <div id="isout" style="display:none;">
				<a href="javascript:showLoginBox()" class="top_login">用户登录</a>
				<a href="javascript:showRegBox();">注册</a>
				</div>
			</div>
			<!-- 用户登录对应隐藏区域 -->
			<form id="loginForm" action="__MODULE__/user/login" method="post">
			<div class="login_hide_box">
				
				<img src="__TEMPLATE__/images/sanjiao.gif" alt="" />
				<div class="middle">
					<p>用户名：<span id="hd_username"></span> <a href="javascript:;" id="loginclose">关闭</a></p>
					<input type="text" name="username" class="text" />
					<p>密码：<span id="hd_password"></span></p>
					<input type="password" name="password" class="text" />
					<input type="submit" value="" class="sub" />
				</div>
				<div class="bottom">
					<a  href="javascript:showRegBox();" class="reg">注册</a>
				</div>
			</div>
			</form>
			
			<!-- 用户注册对应隐藏区域 -->
			<form id="regForm" action="__MODULE__/user/register" method="post">	
			<div class="reg_hide_box">
				<img src="__TEMPLATE__/images/sanjiao.gif" alt="" />
				<div class="middle">
					<p>用户名：<a href="javascript:;" id="regclose">关闭</a></p>
					<input type="text" name="username_reg" class="text username" />
					<p>昵称：</p>
					<input type="text" name="nickname" class="text nickname" />
					<p>密码：</p>
					<input type="password" name="password_reg1" class="text password" />
					<p>确认密码：</p>
					<input type="password" name="password_reg2" class="text password" />
					<p>验证码：</p>
					<img src="__MODULE__/user/code" id="code" onclick="this.src=this.src + '&' + Math.random()"/>
					<input type="text"  name="code" class="text password_d" />
					<input type="submit" value="注册" class="sub" />
				</div>
			</div>
			</form>
		</div>
		<!-- 中间1200px宽度区域结束 -->
	</div>
	<!-- 顶部灰色100%区域结束 -->
	
	<!-- 顶部最新消息区域 -->
	<div id="latest_news_box">
		<div id="latest_news">
			<p><span class="title">最新消息：
			<showAllArt rows="1"><a href="{$v.url}">{$v.title}</a></showAllArt>
			</span>
					
			</p>
		</div>
	</div>
	<!-- 顶部最新消息区域结束 -->
	<!-- 主体区域 -->